package com.hgd.igreencar.biz.impl;

import com.hgd.igreencar.biz.IBrandBiz;
import com.hgd.igreencar.dao.BrandMapper;
import com.hgd.igreencar.entity.Brand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BrandBizImpl implements IBrandBiz {

    @Autowired
    private  BrandMapper brandMapper;

    @Override
    public int addBrand(Brand brand) {
        return brandMapper.addBrand(brand);
    }

    @Override
    public int deleteBrand(int brandId) {
        return brandMapper.deleteBrand(brandId);
    }

    @Override
    public int editBrand(Brand brand) {
        return brandMapper.editBrand(brand);
    }
}
